// components/index/collect/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    clock: {
      type: Boolean,
      observer: function() {

      }
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    yesSrc: "/images/banner/icon_clock_sel.png",
    noSrc: "/images/banner/icon_clock_2.png",
    yesText: '已打卡',
    noText: '打卡',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClock: function(event) {
      let clock = this.properties.clock
      this.triggerEvent('onClock',{
        isClock: clock
      },{})
    }
  }
})
